package com.sm.model;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class MyVip {
    private Long id;

    private Integer userId;

    private Long vipId;

    private String name;

    private BigDecimal price;
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date expireTime;

    private String remark;

    /**
     * 会员类型
     * 1,国学启蒙 2,潜能开发,3创意美术4,传媒口才,5筑梦舞蹈,6超级VIP,7合作园,8联盟园,9区域经理
     */
    private Integer vipType;

    /**
     * 连带的VIP名字
     */
    private List<String> vipNames;

    public MyVip(Long id, Integer userId, Long vipId, String name, BigDecimal price, Date createTime, Date expireTime, String remark, Integer vipType) {
        this.id = id;
        this.userId = userId;
        this.vipId = vipId;
        this.name = name;
        this.price = price;
        this.createTime = createTime;
        this.expireTime = expireTime;
        this.remark = remark;
        this.vipType = vipType;
    }
}
